package cn.wen.eeayjoke.ui.home;

import android.view.View;

import com.lzy.widget.vertical.VerticalListView;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import cn.wen.base.adapter.QuickViewHolder;
import cn.wen.base.adapter.listview.QuickListAdapter;
import cn.wen.core.ui.AppFragment;
import cn.wen.eeayjoke.R;

/**
 * 管理中心
 */

public class ManagerCenterFmt extends AppFragment {
    @BindView(R.id.recycler_view)
    VerticalListView mRecyclerView;

    @Override
    protected Object getContentLayout() {
        return R.layout.fmt_management_center;
    }

    @Override
    protected void initView(View contentView) {
        List<String> data=new ArrayList<>();
        for (int i = 0; i < 50; i++) {
            data.add("i-->>"+i);
        }
        //mRecyclerView.setLayoutManager(new LinearLayoutManager(getAppActivity()));
        // 添加分割线
        //mRecyclerView.addItemDecoration(new LinearItemDecoration(getAppActivity()));
        mRecyclerView.setAdapter(new QuickListAdapter<String>(getAppActivity()
        ,data,R.layout.item_main_test) {
            @Override
            protected void convert(QuickViewHolder holder, String item, int position) {
                holder.setText(R.id.tv, item);
            }
        });

    }


}
